package cn.donting.jme.edit.ui.inspector.imp.mat;

import cn.donting.jme.edit.attribute.Attribute;
import cn.donting.jme.edit.ex.AttributeLoader;
import com.jme3.material.Material;

import java.util.ArrayList;
import java.util.List;

/**
 * Lighting.j3md 扩展Attributes
 */
public class LightingMatAttributeLoader implements AttributeLoader<Material> {

    private static final String assetName = "Common/MatDefs/Light/Lighting.j3md";


    @Override
    public List<Attribute> getAttribute(Material material) {
        return new ArrayList<>();
    }

    @Override
    public boolean isLoad(Object object) {
        if (object instanceof Material) {
            if (((Material) object).getMaterialDef().getAssetName().equals(assetName)) {
                return true;
            }
        }
        return false;
    }

}
